<!-- 图片管理 -->
<template>
	<BaseTable
		:option="option"
		@createClick="createClick"
		:eventOption="{
			confirmBtn
		}"
	/>
</template>

<script setup>
import { ref } from "vue";
const option = ref({
	column: [
		{
			prop: "menuType",
			label: "图片名称",
			form: true
		},
		{
			prop: "parentMenuId",
			label: "图片分类",
			form: true,
			type: "Select",
			dict: "[]"
		},
		{
			prop: "menuName",
			label: "图片描述",
			type: "textarea",
			form: true
		},
		{
			prop: "shortName",
			label: "图片作者"
		},
		{
			prop: "menuUrl",
			label: "上传时间"
		},
		{
			prop: "menuStatus",
			label: "图片状态",
			type: "Select",
			form: true,
			dict: [
				{ value: "1", label: "生效" },
				{ value: "2", label: "失效" }
			],
			rules: [
				{
					required: true,
					message: "Please"
				}
			]
		}
	],
	data: [{ name: "Ren", age: 18, sex: "1" }],
	page: true,
	pageConfig: { pageKey: "currentPage", sizeKey: "pageSize" },
	pageOption: { currentPage: 1, pageSize: 20, total: 0 }
});
const page = ref({});

//新增-按钮
const createClick = () => {};

//新增确定-按钮
const confirmBtn = async (form, done) => {
	try {
		done();
	} catch (error) {
		console.log("新增确定-按钮：", error);
	}
};
</script>

<style lang="less" scoped></style>
